// Tierless
// Copyright © 2010 Alphora
// This file is licensed under a modified BSD-license (see tierless_license.txt).
using System;
using System.Runtime.Serialization;

namespace Tierless.Framework.EntityTypes
{
	/// <summary>
	/// Represents a reference to an entity column.
	/// </summary>
	[DataContract]
	public class EntityTypeColumnReference : NamedEntityTypeObject
	{
		/// <summary>
		/// Initializes a new instance of the EntityTypeColumnReference class.
		/// </summary>
		/// <param name="name">The name of the referenced column.</param>
		public EntityTypeColumnReference(string name)
			: base(name)
		{}

		/// <summary>
		/// Gets a string representation of the entity type column reference.
		/// </summary>
		/// <returns>A string representation of the entity type column reference.</returns>
		public override string ToString()
		{
			return String.Format("EntityColumnReference: {0};", Name);
		}
	}
}